<?php
namespace app\api\controller\v1;

use app\api\controller\Base;
use app\api\service\UserToken;
use app\api\validate\TokenGet;


/** 
* Document
*/
class Token extends Base {
    
    public function get($code = ''){
        (new TokenGet())->goCheck();
        
        $ut = new UserToken($code);
        $token = $ut->get();

        return $this->data($token);
    }
}